package com.mjh.service;

import com.github.pagehelper.PageInfo;
import com.mjh.bean.Activity;
import com.mjh.query.ActivityQueryCondition;
import com.mjh.vo.ActivityVo;

import java.util.List;

public interface ActivityService {
    PageInfo<ActivityVo> queryActivityListPage(ActivityQueryCondition activityQueryCondition);

    Boolean saveActivity(Activity activity);

    ActivityVo queryActivityById(Integer id);

    Boolean modifyActivity(Activity activity);

    /**
     * 删除活动
     * @param id
     * @return
     */
    Boolean removeActivity(Integer id);
    /**
     * 批量删除活动
     * @param ids
     * @return
     */
    Boolean removeActivityBatch(List<Integer> ids);

    /**
     * 根据id查询市场活动详情
     * @param id
     * @return
     */
    ActivityVo queryActivityDetailById(Integer id);

    /**
     * 查询市场活动列表
     * @return
     */
    List<Activity> queryActivityList();
}
